new Promise((resolve) => {
  setTimeout(() => {
    resolve('1');
    new Promise((resolve) => {
      resolve('2');
    }).then((res) => {
      console.log(res);
    });
  });
}).then((res) => {
  console.log(res);
});